<?php
/** .-------------------------------------------------------------------
 * |      Site: www.hdcms.com  www.houdunren.com
 * |      Date: 2018/7/2 上午12:54
 * |    Author: 向军大叔 <2300071698@qq.com>
 * '-------------------------------------------------------------------*/
/**
 * 后台菜单配置
 * 下面是属性说明：
 * title 菜单栏目
 * icon 图标参考 http://fontawesome.dashgame.com/
 * menus 子菜单
 * permission 权限标识，必须在permission.php配置文件中存在
 */
return [
    [
        "title"      => "用户管理",
        "icon"       => "fa fa-navicon",
        'permission' => [
            'Modules\Admin\Http\Controllers\AdminUserController@index',
            'Modules\Admin\Http\Controllers\AdminUserController@create',
            'Modules\Admin\Http\Controllers\AdminUserController@edit',
            'Modules\Admin\Http\Controllers\AdminUserController@destroy',
        ],
        "menus"      => [
            ["title" => "前台用户列表", "permission" => "Modules\Admin\Http\Controllers\AdminController@index", "url" => "admin.index"],
            ["title" => "后台用户列表", "permission" => "Modules\Admin\Http\Controllers\AdminUserController@index", "url" => "adminuser.index"],
        ],
    ],
    [
        "title"      => "角色管理",
        "icon"       => "fa fa-navicon",
        'permission' => [
            'Modules\Admin\Http\Controllers\RoleController@index',
            'Modules\Admin\Http\Controllers\RoleController@create',
            'Modules\Admin\Http\Controllers\RoleController@edit',
            'Modules\Admin\Http\Controllers\RoleController@destroy',
        ],
        "menus"      => [
            ["title" => "后台角色列表", "permission" => "Modules\Admin\Http\Controllers\RoleController@index", "url" => "role.index"],
            ["title" => "添加后台角色", "permission" => "Modules\Admin\Http\Controllers\RoleController@create", "url" => "role.index"],
            ["title" => "编辑后台角色", "permission" => "Modules\Admin\Http\Controllers\RoleController@edit", "url" => "role.index"],
            ["title" => "删除后台角色", "permission" => "Modules\Admin\Http\Controllers\RoleController@destroy", "url" => "role.index"],
        ],
    ],
];
